﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class WorkerBuilder
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class WorkerBuilder
   ">
    <meta name="generator" content="docfx 2.28.3.0">
    
    <link rel="shortcut icon" href="../favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="Brun.WorkerBuilder">
  
  
  <h1 id="Brun_WorkerBuilder" data-uid="Brun.WorkerBuilder" class="text-break">Class WorkerBuilder
  </h1>
  <div class="markdown level0 summary"><p>Woker建造器</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">WorkerBuilder</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="Brun.html">Brun</a></h6>
  <h6><strong>Assembly</strong>: Brun.dll</h6>
  <h5 id="Brun_WorkerBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class WorkerBuilder : Object</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  
  
  <a id="Brun_WorkerBuilder__ctor_" data-uid="Brun.WorkerBuilder.#ctor*"></a>
  <h4 id="Brun_WorkerBuilder__ctor" data-uid="Brun.WorkerBuilder.#ctor">WorkerBuilder()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder()</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="Brun_WorkerBuilder_Build_" data-uid="Brun.WorkerBuilder.Build*"></a>
  <h4 id="Brun_WorkerBuilder_Build" data-uid="Brun.WorkerBuilder.Build">Build()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IWorker Build()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.IWorker.html">IWorker</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_BuildOnceWorker_" data-uid="Brun.WorkerBuilder.BuildOnceWorker*"></a>
  <h4 id="Brun_WorkerBuilder_BuildOnceWorker" data-uid="Brun.WorkerBuilder.BuildOnceWorker">BuildOnceWorker()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IOnceWorker BuildOnceWorker()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.IOnceWorker.html">IOnceWorker</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_Create_" data-uid="Brun.WorkerBuilder.Create*"></a>
  <h4 id="Brun_WorkerBuilder_Create__1" data-uid="Brun.WorkerBuilder.Create``1">Create&lt;TBackRun&gt;()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static WorkerBuilder Create&lt;TBackRun&gt;()where TBackRun : BackRun, new ()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TBackRun</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_CreateQueue_" data-uid="Brun.WorkerBuilder.CreateQueue*"></a>
  <h4 id="Brun_WorkerBuilder_CreateQueue__1" data-uid="Brun.WorkerBuilder.CreateQueue``1">CreateQueue&lt;TQueueBackRun&gt;()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static WorkerBuilder CreateQueue&lt;TQueueBackRun&gt;()where TQueueBackRun : QueueBackRun, new ()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TQueueBackRun</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_CreateTime_" data-uid="Brun.WorkerBuilder.CreateTime*"></a>
  <h4 id="Brun_WorkerBuilder_CreateTime" data-uid="Brun.WorkerBuilder.CreateTime">CreateTime()</h4>
  <div class="markdown level1 summary"><p>可以不指定BackRun类型而指定Worker实例Key，内部调用OnceWorker的run</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static WorkerBuilder CreateTime()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_CreateTime_" data-uid="Brun.WorkerBuilder.CreateTime*"></a>
  <h4 id="Brun_WorkerBuilder_CreateTime__1" data-uid="Brun.WorkerBuilder.CreateTime``1">CreateTime&lt;TBackRun&gt;()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static WorkerBuilder CreateTime&lt;TBackRun&gt;()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TBackRun</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetConfig_" data-uid="Brun.WorkerBuilder.SetConfig*"></a>
  <h4 id="Brun_WorkerBuilder_SetConfig_Brun_WorkerConfig_" data-uid="Brun.WorkerBuilder.SetConfig(Brun.WorkerConfig)">SetConfig(WorkerConfig)</h4>
  <div class="markdown level1 summary"><p>设置单独的配置</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static void SetConfig(WorkerConfig workerConfig)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerConfig.html">WorkerConfig</a></td>
        <td><span class="parametername">workerConfig</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetConfig_" data-uid="Brun.WorkerBuilder.SetConfig*"></a>
  <h4 id="Brun_WorkerBuilder_SetConfig_System_Action_Brun_WorkerConfig__" data-uid="Brun.WorkerBuilder.SetConfig(System.Action{Brun.WorkerConfig})">SetConfig(Action&lt;WorkerConfig&gt;)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetConfig(Action&lt;WorkerConfig&gt; configure)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Brun.WorkerConfig.html">WorkerConfig</a>&gt;</td>
        <td><span class="parametername">configure</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetCycle_" data-uid="Brun.WorkerBuilder.SetCycle*"></a>
  <h4 id="Brun_WorkerBuilder_SetCycle_System_TimeSpan_" data-uid="Brun.WorkerBuilder.SetCycle(System.TimeSpan)">SetCycle(TimeSpan)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetCycle(TimeSpan cycle)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.TimeSpan</span></td>
        <td><span class="parametername">cycle</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetData_" data-uid="Brun.WorkerBuilder.SetData*"></a>
  <h4 id="Brun_WorkerBuilder_SetData_System_Collections_Concurrent_ConcurrentDictionary_System_String_System_String__" data-uid="Brun.WorkerBuilder.SetData(System.Collections.Concurrent.ConcurrentDictionary{System.String,System.String})">SetData(ConcurrentDictionary&lt;String, String&gt;)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetData(ConcurrentDictionary&lt;string, string&gt; data)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Concurrent.ConcurrentDictionary</span>&lt;<span class="xref">System.String</span>, <span class="xref">System.String</span>&gt;</td>
        <td><span class="parametername">data</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetKey_" data-uid="Brun.WorkerBuilder.SetKey*"></a>
  <h4 id="Brun_WorkerBuilder_SetKey_System_String_" data-uid="Brun.WorkerBuilder.SetKey(System.String)">SetKey(String)</h4>
  <div class="markdown level1 summary"><p>自己保证唯一，为空时默认newGuid</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetKey(string key)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetName_" data-uid="Brun.WorkerBuilder.SetName*"></a>
  <h4 id="Brun_WorkerBuilder_SetName_System_String_" data-uid="Brun.WorkerBuilder.SetName(System.String)">SetName(String)</h4>
  <div class="markdown level1 summary"><p>可以重复，为空默认使用类名</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetName(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetNameTagKey_" data-uid="Brun.WorkerBuilder.SetNameTagKey*"></a>
  <h4 id="Brun_WorkerBuilder_SetNameTagKey_System_String_System_String_System_String_" data-uid="Brun.WorkerBuilder.SetNameTagKey(System.String,System.String,System.String)">SetNameTagKey(String, String, String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetNameTagKey(string name, string tag, string key = null)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">tag</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">key</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetOption_" data-uid="Brun.WorkerBuilder.SetOption*"></a>
  <h4 id="Brun_WorkerBuilder_SetOption_System_Action_Brun_WorkerOption__" data-uid="Brun.WorkerBuilder.SetOption(System.Action{Brun.WorkerOption})">SetOption(Action&lt;WorkerOption&gt;)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetOption(Action&lt;WorkerOption&gt; configure)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Action</span>&lt;<a class="xref" href="Brun.WorkerOption.html">WorkerOption</a>&gt;</td>
        <td><span class="parametername">configure</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetTag_" data-uid="Brun.WorkerBuilder.SetTag*"></a>
  <h4 id="Brun_WorkerBuilder_SetTag_System_String_" data-uid="Brun.WorkerBuilder.SetTag(System.String)">SetTag(String)</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetTag(string tag)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">tag</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetWorker_" data-uid="Brun.WorkerBuilder.SetWorker*"></a>
  <h4 id="Brun_WorkerBuilder_SetWorker__1" data-uid="Brun.WorkerBuilder.SetWorker``1">SetWorker&lt;TWorker&gt;()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetWorker&lt;TWorker&gt;()where TWorker : AbstractWorker</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">TWorker</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="Brun_WorkerBuilder_SetWorkerType_" data-uid="Brun.WorkerBuilder.SetWorkerType*"></a>
  <h4 id="Brun_WorkerBuilder_SetWorkerType_System_Type_" data-uid="Brun.WorkerBuilder.SetWorkerType(System.Type)">SetWorkerType(Type)</h4>
  <div class="markdown level1 summary"><p>设置worker类型，默认OnceWorker</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public WorkerBuilder SetWorkerType(Type workerType)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Type</span></td>
        <td><span class="parametername">workerType</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="Brun.WorkerBuilder.html">WorkerBuilder</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            <span>Copyright © 2021 xxf</span>
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
